package
        com.zzc.fee.controller.apis;

import com.hos.entity.his.CareOrderItem;
import com.hos.vo.Result;
import com.zzc.fee.service.CareOrderItemService;
import com.zzc.fee.vo.CareOrderItemVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2023/12/25 16:06
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/fee/api/statistics/drug")
@Api(value = "药品销售统计相关接口",tags = "药品销售统计相关接口")
public class APISalesController {
    @Resource
    private CareOrderItemService careOrderItemService;

    @PostMapping("/queryDrug")
    @ApiOperation("查询发药统计列表")
    public Result<List<CareOrderItem>> queryCheck(@RequestBody CareOrderItemVo careOrderItemVo){
         return new Result<>(200,"查询成功",careOrderItemService.queryCheck(careOrderItemVo));
    }
    @PostMapping("/queryDrugStat")
    @ApiOperation("查询发药数量统计列表")
    public Result<List<CareOrderItem>> queryDrugStat(@RequestBody CareOrderItemVo careOrderItemVo){
        return new Result<>(200,"查询成功",careOrderItemService.queryDrugStat(careOrderItemVo));
    }


}